from random import*
a=[]
for i in range(10):
    a.append(randint(0,100))
for j in range(10):
    print(a[j],end='')
    print()
    print(min(a))
    a.sort()
    print(a)
    a.reverse()
    print(a)